<!--#
layout("/layouts/platform.html"){
#-->
<header class="header navbar bg-white shadow">
    <div class="btn-group tool-button">
        <a class="btn btn-primary navbar-btn" href="${base}/platform/self/order/goods/feedback" id="goBack" data-pjax><i class="ti-angle-left"></i>${msg['globals.button.back']}</a>
    </div>
</header>

<div class="content-wrap">
    <div class="wrapper" style="min-height:500px;">
        <section class="panel panel-form">
            <form id="addForm" role="form" class="form-horizontal parsley-form" data-parsley-validate
                  action="${base}/platform/self/order/goods/feedback/addDo" method="post">
                <div class="row mb10 mt10">
                    <div class="col-lg-12">
                        <div class="form-group">
                            <label for="orderId" class="col-sm-2 control-label">${msg['order.goods.feedback.column.orderId']}</label>
                            <div class="col-sm-8">
                            <input type="text" id="orderId" class="form-control" name="orderId" data-parsley-required="true" placeholder="${msg['order.goods.feedback.column.orderId']}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="accountId" class="col-sm-2 control-label">${msg['order.goods.feedback.column.accountId']}</label>
                            <div class="col-sm-8">
                            <input type="text" id="accountId" class="form-control" name="accountId" data-parsley-required="true" placeholder="${msg['order.goods.feedback.column.accountId']}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="storeId" class="col-sm-2 control-label">${msg['order.goods.feedback.column.storeId']}</label>
                            <div class="col-sm-8">
                            <input type="text" id="storeId" class="form-control" name="storeId" data-parsley-required="true" placeholder="${msg['order.goods.feedback.column.storeId']}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="appScore" class="col-sm-2 control-label">${msg['order.goods.feedback.column.appScore']}</label>
                            <div class="col-sm-8">
                            <input type="text" id="appScore" class="form-control" name="appScore" data-parsley-required="true" placeholder="${msg['order.goods.feedback.column.appScore']}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="goodsId" class="col-sm-2 control-label">${msg['order.goods.feedback.column.goodsId']}</label>
                            <div class="col-sm-8">
                            <input type="text" id="goodsId" class="form-control" name="goodsId" data-parsley-required="true" placeholder="${msg['order.goods.feedback.column.goodsId']}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="productId" class="col-sm-2 control-label">${msg['order.goods.feedback.column.productId']}</label>
                            <div class="col-sm-8">
                            <input type="text" id="productId" class="form-control" name="productId" data-parsley-required="true" placeholder="${msg['order.goods.feedback.column.productId']}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="sku" class="col-sm-2 control-label">${msg['order.goods.feedback.column.sku']}</label>
                            <div class="col-sm-8">
                            <input type="text" id="sku" class="form-control" name="sku" data-parsley-required="true" placeholder="${msg['order.goods.feedback.column.sku']}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="spec" class="col-sm-2 control-label">${msg['order.goods.feedback.column.spec']}</label>
                            <div class="col-sm-8">
                            <input type="text" id="spec" class="form-control" name="spec" data-parsley-required="true" placeholder="${msg['order.goods.feedback.column.spec']}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="feedAt" class="col-sm-2 control-label">${msg['order.goods.feedback.column.feedAt']}</label>
                            <div class="col-sm-8">
                            <input type="text" id="feedAt" class="form-control" name="feedAt" data-parsley-required="true" placeholder="${msg['order.goods.feedback.column.feedAt']}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="feedNote" class="col-sm-2 control-label">${msg['order.goods.feedback.column.feedNote']}</label>
                            <div class="col-sm-8">
                            <input type="text" id="feedNote" class="form-control" name="feedNote" data-parsley-required="true" placeholder="${msg['order.goods.feedback.column.feedNote']}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="feedImage" class="col-sm-2 control-label">${msg['order.goods.feedback.column.feedImage']}</label>
                            <div class="col-sm-8">
                            <input type="text" id="feedImage" class="form-control" name="feedImage" data-parsley-required="true" placeholder="${msg['order.goods.feedback.column.feedImage']}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="feedOpen" class="col-sm-2 control-label">${msg['order.goods.feedback.column.feedOpen']}</label>
                            <div class="col-sm-8">
                            <input type="text" id="feedOpen" class="form-control" name="feedOpen" data-parsley-required="true" placeholder="${msg['order.goods.feedback.column.feedOpen']}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="storeReplyNote" class="col-sm-2 control-label">${msg['order.goods.feedback.column.storeReplyNote']}</label>
                            <div class="col-sm-8">
                            <input type="text" id="storeReplyNote" class="form-control" name="storeReplyNote" data-parsley-required="true" placeholder="${msg['order.goods.feedback.column.storeReplyNote']}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="storeReplyAt" class="col-sm-2 control-label">${msg['order.goods.feedback.column.storeReplyAt']}</label>
                            <div class="col-sm-8">
                            <input type="text" id="storeReplyAt" class="form-control" name="storeReplyAt" data-parsley-required="true" placeholder="${msg['order.goods.feedback.column.storeReplyAt']}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="storeReplyUserId" class="col-sm-2 control-label">${msg['order.goods.feedback.column.storeReplyUserId']}</label>
                            <div class="col-sm-8">
                            <input type="text" id="storeReplyUserId" class="form-control" name="storeReplyUserId" data-parsley-required="true" placeholder="${msg['order.goods.feedback.column.storeReplyUserId']}">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-lg-3"></div>
                <div class="col-lg-6">
                    <div class="form-group text-center">
                        <label></label>

                        <div>
                            <button class="btn btn-primary btn-block btn-lg btn-parsley" data-loading-text="${msg['globals.button.submit.tip']}">${msg['globals.button.submit']}</button>
                        </div>
                    </div>
                </div>
            </form>
        </section>
    </div>
</div>
<script language="JavaScript">
    $(document).ready(function () {
        $('#addForm').ajaxForm({
            dataType: 'json',
            beforeSubmit: function (arr, form, options) {
                form.find("button:submit").button("loading");
            },
            success: function (data, statusText, xhr, form) {
                if (data.code == 0) {
                    Toast.success(data.msg);
                    form.resetForm();
                } else {
                    Toast.error(data.msg);
                }
                form.find("button:submit").button("reset");
            }
        });
    });
</script>
<!--#}#-->


